﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JGSY.LHBS
{
    public class MessageHelper
    {
        public static void Error(string title, string msg )
        {
            MessageBox.Show( msg, title, MessageBoxButtons.OK, MessageBoxIcon.Error);
        } 
        public static void DialogResult(string title , string msg)
        {
            MessageBox.Show( msg, title, MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
        }

        public static void Info(string title, string msg)
        {
            MessageBox.Show(msg, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static DialogResult Confirm(string title, string msg)
        {
            return MessageBox.Show(msg, title, MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
        }
    }
}
